button: Use g_object_notify_by_pspec()
authorTimm Bäder <mail@baedert.org>
Sat, 1 Aug 2020 13:34:07 +0000 (15:34 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 1 Aug 2020 13:34:07 +0000 (15:34 +0200)
gtk/gtkbutton.c

index d85d65ca484b6be6b4ea98fd983824f4ec880706..ca2d0607d9c10b0fee08e224c644d124e1efa21d 100644 (file)
@@ -1035,7 +1035,7 @@ gtk_button_set_child (GtkButton *button,
     gtk_widget_set_parent (priv->child, GTK_WIDGET (button));
 
   gtk_button_set_child_type (button, WIDGET_CHILD);
-  g_object_notify (G_OBJECT (button), "child");
+  g_object_notify_by_pspec (G_OBJECT (button), props[PROP_CHILD]);
 }
 
 /**